import request from '@/utils/request'

// 查询会议室信息列表
export function listBroadroom(query) {
    return request({
        url: '/server/broadroom/list',
        method: 'get',
        params: query
    })
}

// 查询会议室信息列表
export function listBroadroomByTime(query) {
  return request({
    url: '/server/broadroom/timeList',
    method: 'get',
    params: query
  })
}

// 查询会议室信息详细
export function getBroadroom(broadroomId) {
    return request({
        url: '/server/broadroom/' + broadroomId,
        method: 'get'
    })
}

// 新增会议室信息
export function addBroadroom(data) {
    return request({
        url: '/server/broadroom',
        method: 'post',
        data: data
    })
}

// 修改会议室信息
export function updateBroadroom(data) {
    return request({
        url: '/server/broadroom',
        method: 'put',
        data: data
    })
}

// 删除会议室信息
export function delBroadroom(broadroomId) {
    return request({
        url: '/server/broadroom/' + broadroomId,
        method: 'delete'
    })
}

// 导出会议室信息
export function exportBroadroom(query) {
    return request({
        url: '/server/broadroom/export',
        method: 'get',
        params: query
    })
}
